Xbasic

A5_FixDBFFieldNames Function

Syntax

V a5_FixDBFFieldNames(C tablename )

Arguments

tablename

The name of the table.

Description

Fixes fieldnames in a .dbf table. Field names can be invalid in externally created .dbf files.

Discussion

The A5_FixDBFFieldNames() function checks a table to ensure that all field names are valid, and fixes any that are not. This is useful if you have a .DBF file that was created by some external program that might have created invalid field names.

See Also